<script setup lang="ts">
import { ref } from 'vue'
const username=ref('')
const password=ref('')
//登录
const login=()=>{
alert('你已成功登录')
}
//重置  点击  清空账号密码
const reset=()=>{
username.value=''
password.value=''

}



</script>

<template>
 <div id="app">

账号:<input type="text" v-model="username"/> <br/>
密码;<input type="password" v-model="password"/>  <br>
<button @click="login">登录</button>
<button @click="reset">重置</button> 
 </div>

</template>

<style>

</style>
